package JiCheng;

public class TestStudent {
    public static void main(String[] args) {
        Student student = new Student("李小欢",17,"女","123344",12138,"1");
        student.descStu();
        student.play("看小说");
        student.eat("砂锅");
        Person[] sts =new Person[3];
        Person stus1 = new Person("aaa",17,"男","123321");
        Person stus2 = new Person("bbb",12,"女","123444");
        Person stus3 = new Person("ccc",13,"男","123444445");
        sts[0]=stus1;sts[1]=stus2;sts[2]=stus3;
        for (int i = 0; i < sts.length; i++) {
            System.out.println("sts["+i+"] = " + sts[i]);
//            System.out.println("sts["+i+"].name = " + sts[i].name);
//            System.out.println("sts["+i+"].age = " + sts[i].age);
            System.out.println("------信息结束------");

        }
    }
}
